FROM openjdk:8u201-jdk-alpine3.9
RUN mkdir /opt
ADD ./target/crud-0.0.1-SNAPSHOT.jar /opt/crud.jar
VOLUME /var/log
EXPOSE 8080
WORKDIR /opt
ENTRYPOINT java -jar -Duser.timezone=GMT ./crud.jar --spring.profiles.active=prod /var/log/crud/crud.log 2>&1